SELECT id_user, '%20+%20TT_DATA['']%20+%20'ratingByExpert AS rating, '%20+%20TT_DATA['']%20+%20'cntvotersByExpert AS cntvoters, CONCAT(t2.name, ' ', t2.last_name) AS owner

                    FROM contest_UsersRatingMonthly AS t1
                        LEFT JOIN usersExtra AS t2 ON t1.id_user = t2.id
                    WHERE periodFrom = '0000-00-00' AND periodTo = '0000-00-00' AND  '%20+%20TT_DATA['']%20+%20'ratingByExpert > 0
                    ORDER BY '%20+%20TT_DATA['']%20+%20'ratingByExpert DESC
289 Execution error => 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS rating, '%20+%20TT_DATA['']%20+%20'cntvotersByExpert AS cntvoters, CONCAT(t2.' at line 1